package com.greatwall.hip.cms.service.impl;

import com.greatwall.hip.cms.dao.MedicalServiceDataDao;
import com.greatwall.hip.cms.entity.MedicalServiceData;
import com.greatwall.hip.cms.model.Req;
import com.greatwall.hip.cms.service.MedicalServiceDataService;
import com.greatwall.hip.cms.vo.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author TianLei
 * @version V1.0
 */
@Service("medicalServiceDataService")
public class MedicalServiceDataServiceImpl implements MedicalServiceDataService {

    @Resource
    private MedicalServiceDataDao medicalServiceDataDao;

    @Override
    public MedicalServiceData queryStatisticsData(Req req) {
        return this.medicalServiceDataDao.queryStatisticsData(req);
    }

    @Override
    public List<DragIncomeDistributedVO> dragIncomeDistributed(Req req) {
        return this.medicalServiceDataDao.dragIncomeDistributed(req);
    }

    @Override
    public List<InpatientDayDistributedVO> inpatientDayDistributed(Req req) {
        return this.medicalServiceDataDao.inpatientDayDistributed(req);
    }

    @Override
    public List<LeaveHospitalPersonDistributedVO> leaveHospitalDistributed(Req req) {
        return this.medicalServiceDataDao.leaveHospitalDistributed(req);
    }

    @Override
    public List<OutpatientAndCheckPersonDistributedVO> allOutpatientAndCheckPersonDistributed(Req req) {
        return this.medicalServiceDataDao.allOutpatientAndCheckPersonDistributed(req);
    }

    @Override
    public List<IncomeDistributedVO> incomeDistributed(Req req) {
        return this.medicalServiceDataDao.incomeDistributed(req);
    }

    @Override
    public List<TotalIncomeDistributedVO> totalIncomeDistributed(Req req) {
        return this.medicalServiceDataDao.totalIncomeDistributed(req);
    }

    @Override
    public List<OutpatientAvgCostVO> outpatientAvgCostDistributed(Req req) {
        return this.medicalServiceDataDao.outpatientAvgCostDistributed(req);
    }
}
